package com.sfac.springboot.modules.test.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jzq
 * @date 2022/8/17 15:46
 */
@SuppressWarnings({"all"})
@Data
@TableName("test_city")
public class City implements Serializable {

    @TableId(value = "city_id",type = IdType.AUTO)
    private Integer cityId;

    private String cityName;

    private String localCityName;

    private Integer countryId;

    private String district;

    private Integer population;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dateModified;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dateCreated;

}
